package com.atguigu.gulimall.member.service;

import com.atguigu.gulimall.member.ex.PhoneExsitException;
import com.atguigu.gulimall.member.ex.UserNameExsitException;
import com.atguigu.gulimall.member.vo.UserLoginVo;
import com.atguigu.gulimall.member.vo.UserRegisterVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author lxx
 * @email 1914264274@qq.com
 * @date 2022-03-08 15:21:40
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regUser(UserRegisterVo userRegisterVo);

    void checkUserNameUnique(String userName) throws UserNameExsitException;

    void checkPhoneUnique(String phone) throws PhoneExsitException;

    MemberEntity login(UserLoginVo userLoginVo);

    MemberEntity socialLogin(MemberEntity memberEntity);
}

